package com.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.plugins.pagination.PageDto;
import com.baomidou.mybatisplus.extension.service.IService;
import com.dto.PageDTO;
import com.po.Discovery;
import com.query.DiscoveryQuery;
import com.vo.DiscoveryPageVo;
import com.vo.DiscoveryVo;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * @param
 * @return
 */
public interface DiscoveryService extends IService<Discovery> {
    void saveDiscovery(List<MultipartFile> image, List<MultipartFile> video, List<String> iclazz, String idescribe,String title);

    void like(Long id);

    void collect(Long id);


    void saveComment(Long id, MultipartFile image, String comment);

    void saveSlaveComment(Long id,Long masterId,Long slaveId, MultipartFile image, String comment);


    PageDTO<DiscoveryPageVo> getDiscoveryQuery(DiscoveryQuery discoveryQuery);

    DiscoveryVo getDiscovery(Long id);
}
